package com.jiaai.cloud.wx.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.base.page.CustomPage;
import com.jiaai.cloud.wx.entity.TPay;
import com.jiaai.cloud.wx.entity.TPayVO;
import com.jiaai.cloud.wx.mapper.TPayMapper;
import com.jiaai.cloud.wx.service.ITPayService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-28
 */
@Service
public class TPayServiceImpl extends ServiceImpl<TPayMapper, TPay> implements ITPayService {

    @Autowired
    private TPayMapper tPayMapper;


    @Override
    public CustomPage<TPay> selectPageName(Page page, TPayVO tPayVO) {
        page.setRecords(tPayMapper.selectPageName(page, tPayVO));
        return new CustomPage<TPay>(page);
    }
}
